<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="vue.js"></script>
<body>
    <div id='root'>{{msg}}</div>
    <script>
        new Vue({
        el: '#root',  //el 挂载点，与id=root的元素绑定  
        data: {  //绑定元素的数据操作    
            msg: 'hello Vue'
        }    
        }) 
         /**   
          * 原生实现方式
          * var divObjet = document.getElementById('root');
          * divObjet.innerHTML = 'hello Vue';
          * 
          * */

    </script>
</body>
</html>